package cn.aws360.boot.system.api.pojo.properties;

import cn.aws360.boot.base.api.constant.BaseConstant;
import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * @author junnan
 */
@Data
@ConfigurationProperties(prefix = BaseConstant.APP + ".file")
public class FileProperties {

    @Value("${endpoint:http://127.0.0.1:9000}")
    private String endpoint;

    @Value("${region:}")
    private String region;

    @Value("${accessKey:admin}")
    private String accessKey;

    @Value("${secretKey:Admin@123}")
    private String secretKey;

    @Value("${pathStyleAccess:true}")
    private Boolean pathStyleAccess;

    @Value("${max-connections:100}")
    private Integer maxConnections;

}
